home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Chip 1996 September
/
CHIP 1996 szeptember (CD07).zip
/
CHIP_CD07.ISO
/
povray30
/
povmsdos.exe
/
POVMSDOS.ZIP
/
DOCSDEMO
/
TORDEMO.POV
< prev
Wrap
Text File
|
1996-07-08
|
2KB
|
77 lines
//
// POV-Ray(tm) 3.0 tutorial example scene.
// Copyright 1996 by the POV-Ray Team
//
#include "colors.inc"
camera {
location <0, .1, -25>
look_at 0
angle 36
}
background { color White }
light_source{ <300, 300, -1000> White }
#declare Half_Torus = difference {
torus { 4,1
sturm
rotate x*-90 // so we can see it from the top
}
box { <-5, -5, -1>, <5, 0, 1> }
}
#declare Flip_It_Over = x*180
#declare Torus_Translate = 8
#declare Link_Translate = Torus_Translate*2-2*y
#declare Chain_Segment = cylinder { <0, 4, 0>, <0, -4, 0>, 1 }
#declare Chain_Gold = texture {
pigment { BrightGold }
finish {
ambient .1
diffuse .4
reflection .25
specular 1
metallic
}
}
#declare Link = union {
object { Half_Torus
translate y*Torus_Translate/2
}
object { Half_Torus
rotate Flip_It_Over
translate -y*Torus_Translate/2
}
object { Chain_Segment
translate x*Torus_Translate/2
}
object { Chain_Segment
translate -x*Torus_Translate/2
}
texture { Chain_Gold }
}
#declare Link_Pair = union {
object { Link }
object { Link translate y*Link_Translate rotate y*90 }
}
#declare Chain = union {
object { Link_Pair}
object { Link_Pair translate y*Link_Translate*2 }
object { Link_Pair translate y*Link_Translate*4 }
object { Link_Pair translate y*Link_Translate*6 }
object { Link_Pair translate -y*Link_Translate*2 }
object { Link_Pair translate -y*Link_Translate*4 }
object { Link_Pair translate -y*Link_Translate*6 }
}
object { Chain scale .1 rotate <0, 45, -45> }